/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __PERIPHERAL_INIT_H
#define __PERIPHERAL_INIT_H

#ifdef __cplusplus
 extern "C" {
#endif 

/* Includes ------------------------------------------------------------------*/
#include "stm32f10x.h"
#include "protocol.h"
#define DETDATA_ADDRESS     0x0803F800//0x08000000+127*2048

#define Test_Led                        ((uint32_t)0x60080000)        


void SD_LowLevel_DeInit(void);
void SD_LowLevel_Init(void); 
void SD_LowLevel_DMA_TxConfig(uint32_t *BufferSRC, uint32_t BufferSize);
void SD_LowLevel_DMA_RxConfig(uint32_t *BufferDST, uint32_t BufferSize);
uint32_t SD_DMAEndOfTransferStatus(void);
 

//void RTC_Init(void);


void MemReadByte(uint32_t *data ,uint16_t num);
uint8_t MemWriteByte(uint32_t *data ,uint16_t num);

void rt_sprintf( char *buf ,const char *format,...);

void det_data_init(void);
extern unsigned int detnum;
/**
  * @}
  */
#ifdef __cplusplus
}
#endif
  
#endif 

/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
